{extend name="index@common/base"/} 
{block name="style"}
{/block} 
{block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-7">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form" action="{:url('admin/library/search')}" onsubmit="return false;">
					   <button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					   <select name="sysCode" lay-search="">
					   		<option value="">项目名称</option>
					   		{volist name="libraryItem" id="item"}
					   			{if $item.parentCode == 0}
					   			<option value="{$item.sysCode}">{$item.sysCodeName}</option>
					   			{/if}
					   		{/volist}
					   </select>
				</form>	
			</div>
			<div class="tool col-3">
				<button id="create" data-url="{:url('admin/library/create')}"><i class="fa fa-cog"></i></button>
				<button id="add" data-url="{:url('admin/library/add')}"><i class="fa fa-plus"></i></button>
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="library" lay-filter="library" data-url="{:url('admin/library/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__JS__/admin/library.js"></script>
<script type="text/html" id="tree">
	{{# if (d.haschild){ }}
		<a href="javascript:;" class="layui-btn layui-btn-mini tree-btn" data-sys="{{d.sysCode}}" data-subsys="{{d.subsystemNo}}" data-psys="{{d.parentCode}}" data-psubsys="{{d.parentSubsystemNo}}"><i class="fa fa-sitemap"></i></a>
	{{# }else{ }}
		<a href="javascript:;" class="layui-btn layui-btn-disabled layui-btn-mini tree-btn" data-sys="{{d.sysCode}}" data-subsys="{{d.subsystemNo}}" data-psys="{{d.parentCode}}" data-psubsys="{{d.parentSubsystemNo}}"><i class="fa fa-sitemap"></i></a>
	{{# } }}
</script>
<script type="text/html" id="toolDemo">
	<div>
		<a class="layui-btn btn-edit" lay-event="edit" id="edit_{{d.id}}" data-url="{:url('admin/library/edit')}?libraryId={{d.id}}"><i class="fa fa-pencil"></i></a>
		<a class="layui-btn btn-del" id="del_{{d.id}}"lay-event="del" data-url="{:url('admin/library/del')}?libraryId={{d.id}}"><i class="fa fa-trash"></i></a>
	</div>
</script>
{/block}
